package com.corning.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.corning.common.utils.PageUtils;
import com.corning.common.utils.Query;

import com.corning.patient.dao.ArchivesDao;
import com.corning.patient.entity.ArchivesEntity;
import com.corning.patient.service.ArchivesService;


@Service("archivesService")
public class ArchivesServiceImpl extends ServiceImpl<ArchivesDao, ArchivesEntity> implements ArchivesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ArchivesEntity> page = this.page(
                new Query<ArchivesEntity>().getPage(params),
                new QueryWrapper<ArchivesEntity>()
        );

        return new PageUtils(page);
    }

}